package com.dianxin.farm.mapper.customer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dianxin.farm.entity.CustomerBalance;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 用户余额表 Mapper 接口
 * </p>
 *
 * @author xukai
 * @since 2020-11-30
 */
public interface CustomerBalanceMapper extends BaseMapper<CustomerBalance> {

    CustomerBalance selectForUpdate(@Param("customerId")Integer customerId);

    void addBalance(@Param("id") Integer id, @Param("balance") BigDecimal balance);



}
